package Project2.cs342.project1.mathNotebook.data;

import java.util.*;

import Project2.cs342.project1.mathNotebook.notebook.NotebookEntry;

/**
 * Provides the ability to write notebook entries to a data source
 * @author Jared Schlicht
 */
public interface NotebookWriter {
    /**
     * Writes all notebook entries to the datasource
     * @return list of notebook entries
     */
    public abstract boolean writeAll(final Collection<NotebookEntry> entries);
    
    /**
     * Closes any resources held by this NotebookWriter
     */
    public abstract void close();
}